package com.huakai.springenv.perf;

import com.huakai.springenv.mapper.KvMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController()
@RequestMapping("perf")
public class PerfController {
    @Resource
    private KvMapper kvMapper;

    @RequestMapping(value = "/test")
    public String test(@RequestParam String key) {
        return kvMapper.get(key).getValue();
    }
}
